//
//  ViewController.m
//  Socket
//
//  Created by yan on 2016/12/8.
//  Copyright © 2016年 yan. All rights reserved.
//

#import "ViewController.h"
#import <arpa/inet.h>
#import <netdb.h>
#import "AsyncSocketViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(actionTap)];
    [self.view addGestureRecognizer:tap];
}

- (void)actionTap {
    AsyncSocketViewController *vc = [[AsyncSocketViewController alloc] init];
    [self presentViewController:vc animated:YES completion:^{
        
    }];
}

void connectServier(NSString *host, NSNumber *port) {
//    int soc = socket(AF_INET, SOCK_STREAM, 0);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
